package db;

import java.sql.*;

public class DBUtil {

    private static final String URL = "jdbc:mysql://111.231.67.38:3306/immoc";
    private static final String USER = "root";
    private static final String PASSWORD = null;

    private static Connection conn;

    static {
        try {
            Class.forName("org.mariadb.jdbc.Driver");
            conn = DriverManager.getConnection(URL, USER, PASSWORD);
        } catch (ClassNotFoundException | SQLException e) {
            e.printStackTrace();
        }
    }


    public static Connection getConn() {
        return conn;
    }



}
